package com.yicong.ants.bean.scenic;

/**
 * @author cch
 * @version 2021/3/15
 */
public class ConsumeDetail {
    String deduct_energy;
    String tax;
    String pre_coin;

    public ConsumeDetail() {
    }

    public String getDeduct_energy() {
        return this.deduct_energy;
    }

    public String getTax() {
        return this.tax;
    }

    public String getPre_coin() {
        return this.pre_coin;
    }

    public void setDeduct_energy(String deduct_energy) {
        this.deduct_energy = deduct_energy;
    }

    public void setTax(String tax) {
        this.tax = tax;
    }

    public void setPre_coin(String pre_coin) {
        this.pre_coin = pre_coin;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof ConsumeDetail)) return false;
        final ConsumeDetail other = (ConsumeDetail) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$deduct_energy = this.getDeduct_energy();
        final Object other$deduct_energy = other.getDeduct_energy();
        if (this$deduct_energy == null ? other$deduct_energy != null : !this$deduct_energy.equals(other$deduct_energy))
            return false;
        final Object this$tax = this.getTax();
        final Object other$tax = other.getTax();
        if (this$tax == null ? other$tax != null : !this$tax.equals(other$tax)) return false;
        final Object this$pre_coin = this.getPre_coin();
        final Object other$pre_coin = other.getPre_coin();
        if (this$pre_coin == null ? other$pre_coin != null : !this$pre_coin.equals(other$pre_coin))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ConsumeDetail;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $deduct_energy = this.getDeduct_energy();
        result = result * PRIME + ($deduct_energy == null ? 43 : $deduct_energy.hashCode());
        final Object $tax = this.getTax();
        result = result * PRIME + ($tax == null ? 43 : $tax.hashCode());
        final Object $pre_coin = this.getPre_coin();
        result = result * PRIME + ($pre_coin == null ? 43 : $pre_coin.hashCode());
        return result;
    }

    public String toString() {
        return "ConsumeDetail(deduct_energy=" + this.getDeduct_energy() + ", tax=" + this.getTax() + ", pre_coin=" + this.getPre_coin() + ")";
    }
}
